﻿<mui:ModernDialog x:Class="SimlvClient.Pages.NewsDetail"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             MinWidth="800" MinHeight="500"    WindowStartupLocation="CenterScreen"  Title="新闻编辑"  >


    <Grid Style="{StaticResource ContentRoot}">

        <ScrollViewer>
            <StackPanel MinWidth="200">
                <ProgressBar Minimum="0" Name="IsBusy"  Maximum="1" Height="16" IsIndeterminate="False" Margin="0,0,0,16" >
                </ProgressBar>

                <Grid x:Name="LayoutRoot" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />

                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="230"></ColumnDefinition>
                        <ColumnDefinition  Width="80"></ColumnDefinition>
                        <ColumnDefinition Width="230"></ColumnDefinition>
                        <ColumnDefinition  Width="80"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="标题:" Grid.Row="0" VerticalAlignment="Center" Grid.Column="0" Margin="5,5,0,0"/>
                    <TextBox x:Name="txtTitle" MaxLength="50" Grid.Column="1" Margin="5,5,0,0" Width="200" HorizontalAlignment="Left"
                  Grid.ColumnSpan="2" />

                    <TextBlock Text="出自:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5"/>
                    <TextBox x:Name="txtFrom" MaxLength="50" Grid.Row="1" Grid.Column="1" Margin="5,5,0,0" Width="200" HorizontalAlignment="Left"
                   />
                    <TextBlock Text="图片:" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5,0,5,0"/>
                    <Button x:Name="txt" Content="浏览($)"  Grid.Row="1" Grid.Column="3" Margin="5,5,0,0" Width="200" HorizontalAlignment="Left"
                  Grid.ColumnSpan="2" Click="BrownImg" />
                    <Button Content="上传" Click="UploadCommand" Grid.Row="1" Grid.Column="4"  Width="75" Margin="5,5,0,0">

                    </Button>
                    <WebBrowser x:Name="frame" Grid.Column="1" Grid.Row="2" Width="670" Height="410" Grid.ColumnSpan="4" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                </Grid>

            </StackPanel>
        </ScrollViewer>

    </Grid>
</mui:ModernDialog>
